package org.example.singleton;

public class lazySingle_staticInnerClass {
    // 懒汉式  静态内部类
    private lazySingle_staticInnerClass(){}

    private static class InnerClass{
        private static lazySingle_staticInnerClass s = new lazySingle_staticInnerClass();
    }

    public static lazySingle_staticInnerClass getInstance(){
        return InnerClass.s;
    }

}
